package com.test.practice.json;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Map;

/**
 * Staff--Practice
 *
 * @author: Jovi
 * @createTime: 2018-01-23 16:11
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Staff {

    private String name;
    private Integer age;
    private String sex;
    private Date birthday;
    private Map<String,String> bbb;

    @Override
    public String toString() {
        return JSON.toJSONString(this, SerializerFeature.WriteMapNullValue);
    }
}
